package com.guyaogg.common.exception;

/**
 * @author 顾遥
 */
public class NoStockException extends RuntimeException {

    private final Long skuId;
    public NoStockException(Long skuId){
        super("商品 id："+skuId+"没有足够的库存了");
        this.skuId = skuId;
    }

    public Long getSkuId() {
        return skuId;
    }
}
